package com.hbx.platform.auth.service.impl;

import com.hbx.platform.auth.domain.RoleMenu;
import com.hbx.platform.auth.mapper.RoleMenuMapper;
import com.hbx.platform.auth.service.IRoleMenuService;
import com.hbx.platform.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hbx
 * @since 2024-04-09
 */
@Service
public class RoleMenuServiceImpl extends BaseServiceImpl<RoleMenu> implements IRoleMenuService {

    @Autowired
    private RoleMenuMapper roleMenuMapper;

    @Override
    public void deleteByRoleId(Long roleId) {
        roleMenuMapper.deleteByRoleId(roleId);
    }

    @Override
    public List<Long> queryByRoleId(Long id) {
        return roleMenuMapper.queryByRoleId(id);
    }
}
